# Maintainer: Miles Alan <m@milesalan.com>
# Contributor: Miles Alan <m@milesalan.com>
pkgname=oil
pkgver=0.21.0
pkgrel=0
pkgdesc="Oil is a new POSIX & bash compatible shell"
url="https://www.oilshell.org"
arch="all"
license="Apache-2.0"
# !check as source has tests, but tagged releases don't
# !strip as oil binary shows error message otherwise, see: https://github.com/oilshell/oil/issues/47
options="!strip !check"
makedepends="readline-dev bash"
subpackages="$pkgname-doc"
source="https://www.oilshell.org/download/oil-$pkgver.tar.gz"

build() {
	# not gnu autoconf
	./configure \
		--prefix /usr \
		--datarootdir /usr/share
	make
}

package() {
	make install DESTDIR="$pkgdir"
	install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}

sha512sums="
6226fba20a7dd53344d4cd710bb5b4ffe65a9cf5413bff965e99af01c161f555c556296aebe2b842376e825c96a0dfc538964d3d1c904e61cab26bb1850ddfdc  oil-0.21.0.tar.gz
"
